package io.hugetower.modules.sys.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.hugetower.common.utils.PageUtils;
import io.hugetower.common.utils.Query;
import io.hugetower.modules.sys.dao.SysLogErrorDao;
import io.hugetower.modules.sys.entity.SysLogErrorEntity;
import io.hugetower.modules.sys.service.SysLogErrorService;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("sysLogErrorService")
public class SysLogErrorServiceImpl extends ServiceImpl<SysLogErrorDao, SysLogErrorEntity> implements SysLogErrorService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<SysLogErrorEntity> page = this.page(
                new Query<SysLogErrorEntity>().getPage(params),
                new QueryWrapper<SysLogErrorEntity>()
        );

        return new PageUtils(page);
    }

}